<?xml version="1.0" encoding="UTF-8"?>
<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"
                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                 xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_2_0.xsd"
                 version="2.0">
  <entity class="adventureWorks.Customer" access="PROPERTY">
    <attributes>
      <id name="customerID" />
      <basic name="companyName"/>
      <basic name="firstName"/>
      <basic name="lastName"/>
      <basic name="emailAddress"/>
      <basic name="phone"/>
      <basic name="modifiedDate">
        <temporal>DATE</temporal>
      </basic>
      <many-to-many name="addresses">
      	<join-table name="CustomerAddress">
      		<join-column name="CustomerID"/>
      		<inverse-join-column name="AddressID"/>
      	</join-table>
      </many-to-many>
    </attributes>
  </entity>
  <entity class="adventureWorks.Address" access="PROPERTY">
    <attributes>
      <id name="addressID" />
      <basic name="addressLine1"/>
      <basic name="addressLine2"/>
      <basic name="city"/>
      <basic name="countryRegion"/>
      <basic name="modifiedDate">
        <temporal>DATE</temporal>
      </basic>
      <basic name="postalCode"/>
      <basic name="stateProvince"/>
    </attributes>
  </entity>
    
</entity-mappings>
